﻿using AiXiu.Model.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.IBLL
{
    public interface IDiscussManager
    {
        /// <summary>
        /// 添加评论
        /// </summary>
        /// <param name="videoId">视频Id</param>
        /// <param name="discuss">评论</param>
        /// <returns></returns>
        bool Add(string videoId, Discuss discuss);
        /// <summary>
        /// 评论数量
        /// </summary>
        /// <param name="videoId"></param>
        /// <returns></returns>
        long Count(string videoId);
        /// <summary>
        /// 查询评论列表
        /// </summary>
        /// <param name="videoId">视频Id</param>
        /// <param name="pageNumber">页码</param>
        /// <param name="pageSize">数据行</param>
        List<Discuss> QueryDiscusses(string videoId, int pageNumber, int pageSize = 10);
    }
}
